package Singleton;



/**
 * 单例模式客户端
 * Created by Garden on 2019/5/13.
 */
public class Client {

    public static void main(String[] args) {
        ProductOne productOne1 = ProductOne.getInstance();
        ProductOne productOne2 = ProductOne.getInstance();
        if (productOne1 == productOne2){
            System.out.println(productOne1.hashCode());
            System.out.println(productOne2.hashCode());
        }
    }

}
